home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1556 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  731 b 

  1. Path: news.ecn.bgu.edu!usenet
  2. From: Ignatius <i-wong@wiu.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: OOP/C++
  5. Date: 11 Jan 1996 17:06:22 GMT
  6. Organization: Western Illinois University
  7. Message-ID: <4d3g2e$mv5@news.ecn.bgu.edu>
  8. NNTP-Posting-Host: tty019.wiu.bgu.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  13.  
  14. I have a lexer and a parser classes for a particular mini computer
  15. language but the many huge switch/case statements are a sore in the
  16. eyes since they exhibit hidden dependencies.  
  17.  
  18. Is there a more elegant solution to it?  Subclassing the tokens
  19. would result in so many derived token classes.  
  20.  
  21. Thanks for any suggestion.  
  22.  
  23. -- ig
  24.  
  25.  
  26.  
  27.